<?php 
include_once ('class_master/db.class.php');
include_once ('class_master/parcourir.class.php');  
?>
<div id="corp2">
<table class="table table-striped">
  <tr>
            <th class="reduire">Date debut</th>
            <th class="reduire">Machine</th>
            <th class="reduire">Salle</th>
            <th class="reduire">Type Erreur</th>
            <th class="reduire">Status Erreur</th>
            <th>commentaire</th>
            
        </tr>
<?php 
    $db = new db();
    $requet = $db->select_all_incidents_machines();
    while ($row = $requet->fetch())
    {
    	echo '
  		<tr>
			<td class="reduire">'.$row[0].'</td> 
            <td class="reduire">'.$row[5].'</td>
            <td class="reduire">'.$row[6].'</td>
            <td class="reduire">'.$row[2].'</td>
            <td class="reduire">'.$row[3].'</td>
            <td class="reduire">'.$row[4].'</td>
        </tr>
        ';
    }
    
    ?>
      
    </table>
</div>
<?php include('includes/footer.php'); ?>